package com.jxbeidou.system.log.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.util.Date;
import com.jxbeidou.core.mybatis.entity.BaseEntity;

/**
 * 登录日志
 *
 * @author 杜晓祥 
 * @since 1.0.0 2023-12-14
 */
@EqualsAndHashCode(callSuper=false)
@Data
@TableName("sys_log_login")
public class LogLoginDO {

	@TableId(type = IdType.ASSIGN_ID)
	private Long id;

	/**
	* 用户名
	*/
	@TableField(value = "username")
	private String username;

	/**
	* 登录IP
	*/
	@TableField(value = "ip")
	private String ip;

	/**
	* 登录地点
	*/
	@TableField(value = "address")
	private String address;

	/**
	* User Agent
	*/
	@TableField(value = "user_agent")
	private String userAgent;

	/**
	* 登录状态  0：失败   1：成功
	*/
	@TableField(value = "status")
	private Integer status;

	/**
	* 操作信息   0：登录成功   1：退出成功  2：验证码错误  3：账号密码错误
	*/
	@TableField(value = "operation")
	private Integer operation;

	@TableField(value = "create_time")
	private LocalDateTime createTime;
}